﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public static class DictionaryHelper
    {
        public static Dictionary<double, double> Round(this Dictionary<double, double> dictionary, int digits )
        {
            return dictionary.ToDictionary(pair => Math.Round(pair.Key, digits), pair => Math.Round(pair.Value, digits));
        }
    }
}
